package com.share.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.admin.model.db.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
public interface UserMapper extends BaseMapper<User> {

    User getUserByAccount(String account);

    Integer bindRoles(@Param("userId") String userId, @Param("list") List<String> roleIds);

    Integer removeRoles(@Param("userId") String userId, @Param("list") List<String> roleIds);
}
